package com.cloudcc.mobile.view.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

import com.cloudcc.mobile.R;
import com.cloudcc.mobile.manager.RunTimeManager;
import com.cloudcc.mobile.view.base.BaseActivity;
import com.cloudcc.mobile.view.main.fragment.NewCoworkerListFragment;

public class NewChatYXActivity extends BaseActivity {
    NewCoworkerListFragment coworlistFragment;
//    private boolean isquliao = RunTimeManager.getInstance().getIsQunLiao();
    private ImageButton newyx_back;
    @Override
    public void init(Bundle savedInstanceState) {
        super.init(savedInstanceState);
        newyx_back = (ImageButton)findViewById(R.id.newyx_back);
        RunTimeManager.getInstance().setIsQunLiao(true);
        coworlistFragment = new NewCoworkerListFragment();
        Bundle bundles = new Bundle();
        bundles.putString("isyxxx","yxxx");
        coworlistFragment.setArguments(bundles);
        getSupportFragmentManager().beginTransaction()
                .add(R.id.yunxin_ts_fragment,coworlistFragment)
                .commit();
        newyx_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_new_chat_yx;
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        RunTimeManager.getInstance().setIsQunLiao(false);
    }
}
